package org.example.controller;

import org.example.domain.CommonTest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OfferController {

    //暴露http请求
    @GetMapping("/offer")
    public String offerService(){
        System.out.println("提供服务发出消息成功");
        return "提供服务发出消息成功";
    }

    @GetMapping("/offerTest")
    public CommonTest offerTestService(){
        System.out.println("提供服务发出消息成功");
        CommonTest commonTest = new CommonTest();
        commonTest.setContent("提供服务发出消息成功");
        return commonTest;
    }
}

